/* vim:set sw=3 et ai cin: */
#ifndef _CBFXS_H_
#define _CBFXS_H_

#include <linux/ioctl.h>

#define CBFXS_MAJOR 253
#define CBFXS_DEVNAME "cbfxs"
#define CBFXS_IOC_MAGIC 'f'
#define CBFXS_IOC_SPI_CHANNEL _IO(CBFXS_IOC_MAGIC, 0)
#define CBFXS_IOC_SPI_COMMAND _IOWR(CBFXS_IOC_MAGIC, 1, struct cbfxs_ioctl_spi_command)
#define CBFXS_IOC_MAXNR 1

#define CBFXS_SPI_BUFFER_SIZE 32

struct cbfxs_ioctl_spi_command {
   unsigned char buffer[CBFXS_SPI_BUFFER_SIZE];
   int buffer_sz;
};

#endif

